<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: Widget类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_widget-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Widget类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>控件基类  
 <a href="class_widget.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_widget_8h_source.html">Widget.h</a>&gt;</code></p>
<div class="dynheader">
类 Widget 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_widget.png" usemap="#Widget_map" alt=""/>
  <map id="Widget_map" name="Widget_map">
<area href="class_i_movable_object.html" title="可执行位移动作的接口" alt="IMovableObject" shape="rect" coords="302,56,413,80"/>
<area href="class_object.html" alt="Object&lt; Widget &gt;" shape="rect" coords="423,56,534,80"/>
<area href="class_i_actable_object.html" title="可执行动作对象的接口" alt="IActableObject" shape="rect" coords="302,0,413,24"/>
<area href="class_abstract_button.html" title="按钮的抽象类" alt="AbstractButton" shape="rect" coords="60,168,171,192"/>
<area href="class_defult_widget.html" title="游戏默认窗口控件" alt="DefultWidget" shape="rect" coords="181,168,292,192"/>
<area href="class_label.html" title="标签控件" alt="Label" shape="rect" coords="302,168,413,192"/>
<area href="class_line_edit.html" title="单文本文本框" alt="LineEdit" shape="rect" coords="423,168,534,192"/>
<area href="class_list_widget.html" alt="ListWidget" shape="rect" coords="544,168,655,192"/>
<area href="class_progress_bar.html" title="进度条控件" alt="ProgressBar" shape="rect" coords="665,168,776,192"/>
<area href="class_check_box.html" title="选择框" alt="CheckBox" shape="rect" coords="0,224,111,248"/>
<area href="class_push_button.html" title="按钮控件" alt="PushButton" shape="rect" coords="121,224,232,248"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_widget_1_1_style_infor.html">StyleInfor</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aa98dcd44b71edaf2a5a1090503f4978c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">FocusPolicy</a> { <a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978ca3ea871a87eb027a222803fee59e6fe22">FocusPolicy::TabFocus</a> = 0x01, 
<a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978ca2f9f3e9d371f1c186deecf6a206fa437">FocusPolicy::ClickFocus</a> = 0x10, 
<a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978caa11f91df0170ecddf92e6413a9eacaad">FocusPolicy::NoFocus</a> = 0x00
 }</td></tr>
<tr class="memdesc:aa98dcd44b71edaf2a5a1090503f4978c"><td class="mdescLeft">&#160;</td><td class="mdescRight">控件获取焦点的策略  <a href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">更多...</a><br /></td></tr>
<tr class="separator:aa98dcd44b71edaf2a5a1090503f4978c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc894fe0bbff0d8d7f0e9705beb99a71"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> { <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71ab9f5c797ebbf55adccdd8539a65a0241">WidgetState::Disabled</a>, 
<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71aeee0168be69b854c20621fc6f01cc3fc">WidgetState::Hover</a>, 
<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71ad78a68f6a85421ae121c2cb5b73a1040">WidgetState::Pressed</a>, 
<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>
 }</td></tr>
<tr class="memdesc:afc894fe0bbff0d8d7f0e9705beb99a71"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口的状态  <a href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">更多...</a><br /></td></tr>
<tr class="separator:afc894fe0bbff0d8d7f0e9705beb99a71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add6efbd96f018154a8b08fe89a43c097"><td class="memItemLeft" align="right" valign="top"><a id="add6efbd96f018154a8b08fe89a43c097"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>MouseEventCallback</b> = std::function&lt; void(<a class="el" href="class_event_mouse.html">EventMouse</a> *)&gt;</td></tr>
<tr class="separator:add6efbd96f018154a8b08fe89a43c097"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18e999c0ab69668e212298aa6da5ed6b"><td class="memItemLeft" align="right" valign="top"><a id="a18e999c0ab69668e212298aa6da5ed6b"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>KeyEventCallback</b> = std::function&lt; void(<a class="el" href="class_event_key.html">EventKey</a> *)&gt;</td></tr>
<tr class="separator:a18e999c0ab69668e212298aa6da5ed6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa24f66bcbaaec6d458b0980e8c8eae65"><td class="memItemLeft" align="right" valign="top"><a id="aa24f66bcbaaec6d458b0980e8c8eae65"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa24f66bcbaaec6d458b0980e8c8eae65">~Widget</a> ()</td></tr>
<tr class="memdesc:aa24f66bcbaaec6d458b0980e8c8eae65"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:aa24f66bcbaaec6d458b0980e8c8eae65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad01089097b612ad5f78825fe6055f8aa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ad01089097b612ad5f78825fe6055f8aa">setBackgroundImage</a> (std::unique_ptr&lt; <a class="el" href="class_scale9_image.html">Scale9Image</a> &gt; image, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:ad01089097b612ad5f78825fe6055f8aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">将派生类的 shared_ptr 转为 widget 的 shared_ptr  <a href="#ad01089097b612ad5f78825fe6055f8aa">更多...</a><br /></td></tr>
<tr class="separator:ad01089097b612ad5f78825fe6055f8aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2962f465ea53324b3216f4d70f0d301e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a2962f465ea53324b3216f4d70f0d301e">setBackgroundImage</a> (const SpriteFrameSharedPtr &amp;sprite_frame, <a class="el" href="class_rect.html">Rect</a> cap=Rect::Zero, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:a2962f465ea53324b3216f4d70f0d301e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置背景图片  <a href="#a2962f465ea53324b3216f4d70f0d301e">更多...</a><br /></td></tr>
<tr class="separator:a2962f465ea53324b3216f4d70f0d301e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6263bff3dbddeb4406979a5f0ea63049"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a6263bff3dbddeb4406979a5f0ea63049">setBackgroundImage</a> (const std::wstring &amp;file_name, <a class="el" href="class_rect.html">Rect</a> cap=Rect::Zero, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:a6263bff3dbddeb4406979a5f0ea63049"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置背景图片  <a href="#a6263bff3dbddeb4406979a5f0ea63049">更多...</a><br /></td></tr>
<tr class="separator:a6263bff3dbddeb4406979a5f0ea63049"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0812a53f0f3aa840cb6dd0fb86322229"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a0812a53f0f3aa840cb6dd0fb86322229">setFont</a> (const <a class="el" href="class_font.html">Font</a> &amp;font, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:a0812a53f0f3aa840cb6dd0fb86322229"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置字体  <a href="#a0812a53f0f3aa840cb6dd0fb86322229">更多...</a><br /></td></tr>
<tr class="separator:a0812a53f0f3aa840cb6dd0fb86322229"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaca6d21146c61f29c2f12538126cc3af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aaca6d21146c61f29c2f12538126cc3af">setTextColor</a> (const <a class="el" href="class_color.html">Color</a> &amp;color, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:aaca6d21146c61f29c2f12538126cc3af"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置文字的颜色  <a href="#aaca6d21146c61f29c2f12538126cc3af">更多...</a><br /></td></tr>
<tr class="separator:aaca6d21146c61f29c2f12538126cc3af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5e436fd5203d231d70c4336cfad6050"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ab5e436fd5203d231d70c4336cfad6050">setEnabled</a> (bool enabled)</td></tr>
<tr class="memdesc:ab5e436fd5203d231d70c4336cfad6050"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置这个widget是否禁用  <a href="#ab5e436fd5203d231d70c4336cfad6050">更多...</a><br /></td></tr>
<tr class="separator:ab5e436fd5203d231d70c4336cfad6050"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad31fc3f6a09f243a4ec1cc170987e467"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ad31fc3f6a09f243a4ec1cc170987e467">isEnabled</a> () const</td></tr>
<tr class="memdesc:ad31fc3f6a09f243a4ec1cc170987e467"><td class="mdescLeft">&#160;</td><td class="mdescRight">这个widget是否被禁用  <a href="#ad31fc3f6a09f243a4ec1cc170987e467">更多...</a><br /></td></tr>
<tr class="separator:ad31fc3f6a09f243a4ec1cc170987e467"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd968a1e776d9012d6e4250b634d14cf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#acd968a1e776d9012d6e4250b634d14cf">getChildAtPos</a> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;pos, const bool allowDisable)</td></tr>
<tr class="memdesc:acd968a1e776d9012d6e4250b634d14cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取某个位置的子控件的弱引用 ，如果不存在 则返回为null  <a href="#acd968a1e776d9012d6e4250b634d14cf">更多...</a><br /></td></tr>
<tr class="separator:acd968a1e776d9012d6e4250b634d14cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a391ce71cb3d5b83186d6c8f8aa894447"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a391ce71cb3d5b83186d6c8f8aa894447">move</a> (float x, float y)</td></tr>
<tr class="memdesc:a391ce71cb3d5b83186d6c8f8aa894447"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动控件到某个位置（相对于父控件）  <a href="#a391ce71cb3d5b83186d6c8f8aa894447">更多...</a><br /></td></tr>
<tr class="separator:a391ce71cb3d5b83186d6c8f8aa894447"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad482afc0226b604e024b5213a67f4269"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ad482afc0226b604e024b5213a67f4269">move</a> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;pos)</td></tr>
<tr class="memdesc:ad482afc0226b604e024b5213a67f4269"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动控件到某个位置（相对于父控件）  <a href="#ad482afc0226b604e024b5213a67f4269">更多...</a><br /></td></tr>
<tr class="separator:ad482afc0226b604e024b5213a67f4269"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a185d091871a0343ab304701d4b57b70d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a185d091871a0343ab304701d4b57b70d">getPosition</a> () const override</td></tr>
<tr class="memdesc:a185d091871a0343ab304701d4b57b70d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件左下角的位置（相对于父控件）  <a href="#a185d091871a0343ab304701d4b57b70d">更多...</a><br /></td></tr>
<tr class="separator:a185d091871a0343ab304701d4b57b70d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51acbd9bdb6838fcee359286cc58b7e0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a51acbd9bdb6838fcee359286cc58b7e0">setPosition</a> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;pos) override</td></tr>
<tr class="memdesc:a51acbd9bdb6838fcee359286cc58b7e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置widget 的位置 等价于 <a class="el" href="class_widget.html#ad482afc0226b604e024b5213a67f4269" title="移动控件到某个位置（相对于父控件）">move(const Vector2 &amp; pos)</a>  <a href="#a51acbd9bdb6838fcee359286cc58b7e0">更多...</a><br /></td></tr>
<tr class="separator:a51acbd9bdb6838fcee359286cc58b7e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a757e7b18d2a387c6c29b29de002d7b07"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a757e7b18d2a387c6c29b29de002d7b07">getAbsPos</a> () const</td></tr>
<tr class="memdesc:a757e7b18d2a387c6c29b29de002d7b07"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件左下角的位置 （绝对坐标，即相对与当前的根窗口）  <a href="#a757e7b18d2a387c6c29b29de002d7b07">更多...</a><br /></td></tr>
<tr class="separator:a757e7b18d2a387c6c29b29de002d7b07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9214d2cd50ea54146cfedaec8b7e69f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a9214d2cd50ea54146cfedaec8b7e69f9">setGeometry</a> (const <a class="el" href="class_rect.html">Rect</a> &amp;rect)</td></tr>
<tr class="memdesc:a9214d2cd50ea54146cfedaec8b7e69f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置控件的矩形表示  <a href="#a9214d2cd50ea54146cfedaec8b7e69f9">更多...</a><br /></td></tr>
<tr class="separator:a9214d2cd50ea54146cfedaec8b7e69f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abeab8f9b74584ed96093f4aad8df8530"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_rect.html">Rect</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#abeab8f9b74584ed96093f4aad8df8530">getGeometry</a> () const</td></tr>
<tr class="memdesc:abeab8f9b74584ed96093f4aad8df8530"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件的矩形表示  <a href="#abeab8f9b74584ed96093f4aad8df8530">更多...</a><br /></td></tr>
<tr class="separator:abeab8f9b74584ed96093f4aad8df8530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadd50305ce9b3e666f597677b8409660"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aadd50305ce9b3e666f597677b8409660">resize</a> (const <a class="el" href="class_size.html">Size</a> &amp;size)</td></tr>
<tr class="memdesc:aadd50305ce9b3e666f597677b8409660"><td class="mdescLeft">&#160;</td><td class="mdescRight">调整控件的尺寸  <a href="#aadd50305ce9b3e666f597677b8409660">更多...</a><br /></td></tr>
<tr class="separator:aadd50305ce9b3e666f597677b8409660"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92ff242cf5edbcfb06c548bb0cb7106a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_size.html">Size</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a92ff242cf5edbcfb06c548bb0cb7106a">getSize</a> () const</td></tr>
<tr class="memdesc:a92ff242cf5edbcfb06c548bb0cb7106a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件的尺寸  <a href="#a92ff242cf5edbcfb06c548bb0cb7106a">更多...</a><br /></td></tr>
<tr class="separator:a92ff242cf5edbcfb06c548bb0cb7106a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7931ceac649bdfe14a7819f771531b95"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a7931ceac649bdfe14a7819f771531b95">isActive</a> () const</td></tr>
<tr class="memdesc:a7931ceac649bdfe14a7819f771531b95"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取父控件的弱引用  <a href="#a7931ceac649bdfe14a7819f771531b95">更多...</a><br /></td></tr>
<tr class="separator:a7931ceac649bdfe14a7819f771531b95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff4a130f23c3d84eae5131baeabf9118"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aff4a130f23c3d84eae5131baeabf9118">hasFocus</a> () const</td></tr>
<tr class="memdesc:aff4a130f23c3d84eae5131baeabf9118"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件是否拥有焦点  <a href="#aff4a130f23c3d84eae5131baeabf9118">更多...</a><br /></td></tr>
<tr class="separator:aff4a130f23c3d84eae5131baeabf9118"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae469bb315299916388d717225e71a802"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae469bb315299916388d717225e71a802">isVisible</a> () const</td></tr>
<tr class="memdesc:ae469bb315299916388d717225e71a802"><td class="mdescLeft">&#160;</td><td class="mdescRight">控件是否被显示  <a href="#ae469bb315299916388d717225e71a802">更多...</a><br /></td></tr>
<tr class="separator:ae469bb315299916388d717225e71a802"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a2f8eebacdd20db505b838f1a118c6b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a4a2f8eebacdd20db505b838f1a118c6b">hide</a> ()</td></tr>
<tr class="memdesc:a4a2f8eebacdd20db505b838f1a118c6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">隐藏窗口  <a href="#a4a2f8eebacdd20db505b838f1a118c6b">更多...</a><br /></td></tr>
<tr class="separator:a4a2f8eebacdd20db505b838f1a118c6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25ff178539e226b5f30ef0335d060f2b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a25ff178539e226b5f30ef0335d060f2b">show</a> ()</td></tr>
<tr class="memdesc:a25ff178539e226b5f30ef0335d060f2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示  <a href="#a25ff178539e226b5f30ef0335d060f2b">更多...</a><br /></td></tr>
<tr class="separator:a25ff178539e226b5f30ef0335d060f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad318d341d341d37709fd52f512383f37"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_camera.html">Camera</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ad318d341d341d37709fd52f512383f37">getCamera</a> () const</td></tr>
<tr class="memdesc:ad318d341d341d37709fd52f512383f37"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件的相机  <a href="#ad318d341d341d37709fd52f512383f37">更多...</a><br /></td></tr>
<tr class="separator:ad318d341d341d37709fd52f512383f37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f42d2d0dab8cbd22d415746fd75908a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a5f42d2d0dab8cbd22d415746fd75908a">setCamera</a> (<a class="el" href="class_camera.html">Camera</a> *camera)</td></tr>
<tr class="memdesc:a5f42d2d0dab8cbd22d415746fd75908a"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置控件的相机  <a href="#a5f42d2d0dab8cbd22d415746fd75908a">更多...</a><br /></td></tr>
<tr class="separator:a5f42d2d0dab8cbd22d415746fd75908a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37e6cdf071ea9ba95cc2d8912c06c014"><td class="memItemLeft" align="right" valign="top"><a id="a37e6cdf071ea9ba95cc2d8912c06c014"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFocuse</b> (bool focuse=true)</td></tr>
<tr class="separator:a37e6cdf071ea9ba95cc2d8912c06c014"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fe7f595bfa98730a29aeeecbe8011ef"><td class="memItemLeft" align="right" valign="top"><a id="a2fe7f595bfa98730a29aeeecbe8011ef"></a>
<a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">FocusPolicy</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getFocusPolicy</b> () const</td></tr>
<tr class="separator:a2fe7f595bfa98730a29aeeecbe8011ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84bdb00ff2149dfcf2457b945ee04ed9"><td class="memItemLeft" align="right" valign="top"><a id="a84bdb00ff2149dfcf2457b945ee04ed9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFocusPolicy</b> (<a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">FocusPolicy</a> policy)</td></tr>
<tr class="separator:a84bdb00ff2149dfcf2457b945ee04ed9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac136f1d6ebf28a59de5925bebb4977c7"><td class="memItemLeft" align="right" valign="top"><a id="ac136f1d6ebf28a59de5925bebb4977c7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isDistributeCapturedInputs</b> () const</td></tr>
<tr class="separator:ac136f1d6ebf28a59de5925bebb4977c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45e13757c625a4833c71a1e841ae3ff9"><td class="memItemLeft" align="right" valign="top"><a id="a45e13757c625a4833c71a1e841ae3ff9"></a>
<a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getActiveChiled</b> () const</td></tr>
<tr class="separator:a45e13757c625a4833c71a1e841ae3ff9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7212097cea9ba1ff346600cd8784b888"><td class="memItemLeft" align="right" valign="top"><a id="a7212097cea9ba1ff346600cd8784b888"></a>
<a class="el" href="class_ui_core.html">UiCore</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getUiCore</b> () const</td></tr>
<tr class="separator:a7212097cea9ba1ff346600cd8784b888"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39e84a9430f776db7a8dccd183289459"><td class="memItemLeft" align="right" valign="top"><a id="a39e84a9430f776db7a8dccd183289459"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMousePressEventListener</b> (const MouseEventCallback &amp;call)</td></tr>
<tr class="separator:a39e84a9430f776db7a8dccd183289459"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac175a5a30f98d7e0eb1d88ee0e35d1f6"><td class="memItemLeft" align="right" valign="top"><a id="ac175a5a30f98d7e0eb1d88ee0e35d1f6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMouseReleaseEventListener</b> (const MouseEventCallback &amp;call)</td></tr>
<tr class="separator:ac175a5a30f98d7e0eb1d88ee0e35d1f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71099550dfe8f797846dc54bf00776d8"><td class="memItemLeft" align="right" valign="top"><a id="a71099550dfe8f797846dc54bf00776d8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMouseMoveEventListener</b> (const MouseEventCallback &amp;call)</td></tr>
<tr class="separator:a71099550dfe8f797846dc54bf00776d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1b9b053492e80bd4d597c4791c1dcb5"><td class="memItemLeft" align="right" valign="top"><a id="aa1b9b053492e80bd4d597c4791c1dcb5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMouseBoubleClickedEventListener</b> (const MouseEventCallback &amp;call)</td></tr>
<tr class="separator:aa1b9b053492e80bd4d597c4791c1dcb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38086791f878582a9ef3377aeae1b697"><td class="memItemLeft" align="right" valign="top"><a id="a38086791f878582a9ef3377aeae1b697"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>visit</b> (<a class="el" href="class_render.html">Render</a> *render, bool parent_change_transfrom_mat)</td></tr>
<tr class="separator:a38086791f878582a9ef3377aeae1b697"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_object.html">Object&lt; Widget &gt;</a></td></tr>
<tr class="memitem:a5cad887a20ddcd6b7fba1a2465409dd5 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a5cad887a20ddcd6b7fba1a2465409dd5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addChildren</b> (<a class="el" href="class_widget.html">Widget</a> *children)</td></tr>
<tr class="separator:a5cad887a20ddcd6b7fba1a2465409dd5 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c1fc3c12c298b8319322df6d9b56285 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a6c1fc3c12c298b8319322df6d9b56285"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>removeChildren</b> (<a class="el" href="class_widget.html">Widget</a> *children)</td></tr>
<tr class="separator:a6c1fc3c12c298b8319322df6d9b56285 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e5320dbb2c25bba2529531e4724b972 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a7e5320dbb2c25bba2529531e4724b972"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setParent</b> (<a class="el" href="class_widget.html">Widget</a> *parent)</td></tr>
<tr class="separator:a7e5320dbb2c25bba2529531e4724b972 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14cfe934104f65fdfd8893067b6afaa0 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a14cfe934104f65fdfd8893067b6afaa0"></a>
<a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getParent</b> () const</td></tr>
<tr class="separator:a14cfe934104f65fdfd8893067b6afaa0 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a5e89aada9763ba842961246736b1b8ed"><td class="memItemLeft" align="right" valign="top"><a id="a5e89aada9763ba842961246736b1b8ed"></a>
static <a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>create</b> (<a class="el" href="class_widget.html">Widget</a> *parent=nullptr)</td></tr>
<tr class="separator:a5e89aada9763ba842961246736b1b8ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:aab7e81b741f5bda3a16da64b92ec6b63"><td class="memItemLeft" align="right" valign="top"><a id="aab7e81b741f5bda3a16da64b92ec6b63"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>WidgetStateCount</b> = 4</td></tr>
<tr class="separator:aab7e81b741f5bda3a16da64b92ec6b63"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:ab74d90e08f161ca59b490e6b0a40a3a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ab74d90e08f161ca59b490e6b0a40a3a1">Widget</a> (<a class="el" href="class_widget.html">Widget</a> *parent=nullptr)</td></tr>
<tr class="memdesc:ab74d90e08f161ca59b490e6b0a40a3a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造  <a href="#ab74d90e08f161ca59b490e6b0a40a3a1">更多...</a><br /></td></tr>
<tr class="separator:ab74d90e08f161ca59b490e6b0a40a3a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa94c38f97715c860044c4735f010572"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#afa94c38f97715c860044c4735f010572">init</a> ()</td></tr>
<tr class="memdesc:afa94c38f97715c860044c4735f010572"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化窗口  <a href="#afa94c38f97715c860044c4735f010572">更多...</a><br /></td></tr>
<tr class="separator:afa94c38f97715c860044c4735f010572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8426dc14f6e8319d8d78af10d33cd379"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a8426dc14f6e8319d8d78af10d33cd379">onKeyPressEvent</a> (<a class="el" href="class_event_key.html">EventKey</a> *event)</td></tr>
<tr class="memdesc:a8426dc14f6e8319d8d78af10d33cd379"><td class="mdescLeft">&#160;</td><td class="mdescRight">键盘中的键按下事件  <a href="#a8426dc14f6e8319d8d78af10d33cd379">更多...</a><br /></td></tr>
<tr class="separator:a8426dc14f6e8319d8d78af10d33cd379"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ea16c64e0036d6c3e8ab21744af4cf2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a9ea16c64e0036d6c3e8ab21744af4cf2">onKeyReleaseEvent</a> (<a class="el" href="class_event_key.html">EventKey</a> *event)</td></tr>
<tr class="memdesc:a9ea16c64e0036d6c3e8ab21744af4cf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">键盘中的键弹起事件  <a href="#a9ea16c64e0036d6c3e8ab21744af4cf2">更多...</a><br /></td></tr>
<tr class="separator:a9ea16c64e0036d6c3e8ab21744af4cf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae83090655af4e7c8d2158600c2c26f94"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae83090655af4e7c8d2158600c2c26f94">onMousePressEvent</a> (<a class="el" href="class_event_mouse.html">EventMouse</a> *event)</td></tr>
<tr class="memdesc:ae83090655af4e7c8d2158600c2c26f94"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标键按下事件  <a href="#ae83090655af4e7c8d2158600c2c26f94">更多...</a><br /></td></tr>
<tr class="separator:ae83090655af4e7c8d2158600c2c26f94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab11f034a2dea14ad22a3bf3755d18318"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ab11f034a2dea14ad22a3bf3755d18318">onMouseReleaseEvent</a> (<a class="el" href="class_event_mouse.html">EventMouse</a> *event)</td></tr>
<tr class="memdesc:ab11f034a2dea14ad22a3bf3755d18318"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标键弹起事件  <a href="#ab11f034a2dea14ad22a3bf3755d18318">更多...</a><br /></td></tr>
<tr class="separator:ab11f034a2dea14ad22a3bf3755d18318"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada1cd30b701b453b7203caaa4501e246"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ada1cd30b701b453b7203caaa4501e246">onMouseMoveEvent</a> (<a class="el" href="class_event_mouse.html">EventMouse</a> *event)</td></tr>
<tr class="memdesc:ada1cd30b701b453b7203caaa4501e246"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标移动事件  <a href="#ada1cd30b701b453b7203caaa4501e246">更多...</a><br /></td></tr>
<tr class="separator:ada1cd30b701b453b7203caaa4501e246"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7db85ef0baa4f2b23f26631f5b57aca"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae7db85ef0baa4f2b23f26631f5b57aca">onMouseDoubleClickedEvent</a> (<a class="el" href="class_event_mouse.html">EventMouse</a> *event)</td></tr>
<tr class="memdesc:ae7db85ef0baa4f2b23f26631f5b57aca"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标双击事件  <a href="#ae7db85ef0baa4f2b23f26631f5b57aca">更多...</a><br /></td></tr>
<tr class="separator:ae7db85ef0baa4f2b23f26631f5b57aca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0efa327209a1bc92a4bba089f59023d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#af0efa327209a1bc92a4bba089f59023d">onMouseLeavesEvent</a> (<a class="el" href="class_widget_event.html">WidgetEvent</a> *event)</td></tr>
<tr class="memdesc:af0efa327209a1bc92a4bba089f59023d"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标进入窗口  <a href="#af0efa327209a1bc92a4bba089f59023d">更多...</a><br /></td></tr>
<tr class="separator:af0efa327209a1bc92a4bba089f59023d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadc31befd9cc8f5cd74cc5d0fc2e889d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aadc31befd9cc8f5cd74cc5d0fc2e889d">onMouseEnterEvent</a> (<a class="el" href="class_widget_event.html">WidgetEvent</a> *event)</td></tr>
<tr class="memdesc:aadc31befd9cc8f5cd74cc5d0fc2e889d"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标离开窗口  <a href="#aadc31befd9cc8f5cd74cc5d0fc2e889d">更多...</a><br /></td></tr>
<tr class="separator:aadc31befd9cc8f5cd74cc5d0fc2e889d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53f5b2041a68628dfd5920192cfa4f9c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a53f5b2041a68628dfd5920192cfa4f9c">onFocusInEvent</a> (<a class="el" href="class_event_focus.html">EventFocus</a> *event)</td></tr>
<tr class="memdesc:a53f5b2041a68628dfd5920192cfa4f9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">获得焦点事件  <a href="#a53f5b2041a68628dfd5920192cfa4f9c">更多...</a><br /></td></tr>
<tr class="separator:a53f5b2041a68628dfd5920192cfa4f9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b7831f26a5688762b730532e1473148"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a1b7831f26a5688762b730532e1473148">onFocusOutEvent</a> (<a class="el" href="class_event_focus.html">EventFocus</a> *event)</td></tr>
<tr class="memdesc:a1b7831f26a5688762b730532e1473148"><td class="mdescLeft">&#160;</td><td class="mdescRight">失去焦点事件  <a href="#a1b7831f26a5688762b730532e1473148">更多...</a><br /></td></tr>
<tr class="separator:a1b7831f26a5688762b730532e1473148"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b92c54bbfbc7ecc62dc7496f0735468"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a2b92c54bbfbc7ecc62dc7496f0735468">onCharacterEvent</a> (<a class="el" href="class_event_character.html">EventCharacter</a> *e)</td></tr>
<tr class="memdesc:a2b92c54bbfbc7ecc62dc7496f0735468"><td class="mdescLeft">&#160;</td><td class="mdescRight">字符消息事件  <a href="#a2b92c54bbfbc7ecc62dc7496f0735468">更多...</a><br /></td></tr>
<tr class="separator:a2b92c54bbfbc7ecc62dc7496f0735468"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81335813f016195213e7caaa9bfedd4e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a81335813f016195213e7caaa9bfedd4e">onMoveEvent</a> (<a class="el" href="class_event_widget_move.html">EventWidgetMove</a> *e)</td></tr>
<tr class="memdesc:a81335813f016195213e7caaa9bfedd4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口移动事件  <a href="#a81335813f016195213e7caaa9bfedd4e">更多...</a><br /></td></tr>
<tr class="separator:a81335813f016195213e7caaa9bfedd4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa59e00b37382ac7c09f4aa30bd142603"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa59e00b37382ac7c09f4aa30bd142603">onActiveEvent</a> (<a class="el" href="class_event_widget_active.html">EventWidgetActive</a> *e)</td></tr>
<tr class="memdesc:aa59e00b37382ac7c09f4aa30bd142603"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口进入活动状态的事件  <a href="#aa59e00b37382ac7c09f4aa30bd142603">更多...</a><br /></td></tr>
<tr class="separator:aa59e00b37382ac7c09f4aa30bd142603"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ff64c02aadfe8fbb392d1f0ba0435bd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a8ff64c02aadfe8fbb392d1f0ba0435bd">onDeactiveEvent</a> (<a class="el" href="class_event_widget_active.html">EventWidgetActive</a> *e)</td></tr>
<tr class="memdesc:a8ff64c02aadfe8fbb392d1f0ba0435bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口失去活动状态的事件  <a href="#a8ff64c02aadfe8fbb392d1f0ba0435bd">更多...</a><br /></td></tr>
<tr class="separator:a8ff64c02aadfe8fbb392d1f0ba0435bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0ed2836fa08df251b072f17c0e3ae1e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa0ed2836fa08df251b072f17c0e3ae1e">onResizeEvent</a> (<a class="el" href="class_event_resize.html">EventResize</a> *e)</td></tr>
<tr class="memdesc:aa0ed2836fa08df251b072f17c0e3ae1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口的尺寸改变的事件  <a href="#aa0ed2836fa08df251b072f17c0e3ae1e">更多...</a><br /></td></tr>
<tr class="separator:aa0ed2836fa08df251b072f17c0e3ae1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e35dc73462ba8aba89078455f4d58be"><td class="memItemLeft" align="right" valign="top"><a id="a1e35dc73462ba8aba89078455f4d58be"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>onEvent</b> (<a class="el" href="class_i_event.html">IEvent</a> *e)</td></tr>
<tr class="separator:a1e35dc73462ba8aba89078455f4d58be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae64942da0517fb6a4ad84365d2a219e0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae64942da0517fb6a4ad84365d2a219e0">getActiveSibling</a> () const</td></tr>
<tr class="memdesc:ae64942da0517fb6a4ad84365d2a219e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取活动的兄弟窗口  <a href="#ae64942da0517fb6a4ad84365d2a219e0">更多...</a><br /></td></tr>
<tr class="separator:ae64942da0517fb6a4ad84365d2a219e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae582d3f5cc2e550fa54bcb8176b7156a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_matrix4_x4.html">Matrix4X4</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae582d3f5cc2e550fa54bcb8176b7156a">getParentMat</a> ()</td></tr>
<tr class="memdesc:ae582d3f5cc2e550fa54bcb8176b7156a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取父窗口的矩阵  <a href="#ae582d3f5cc2e550fa54bcb8176b7156a">更多...</a><br /></td></tr>
<tr class="separator:ae582d3f5cc2e550fa54bcb8176b7156a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9101f0e558c732ba9736940806d32bd8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a9101f0e558c732ba9736940806d32bd8">moveToFront</a> ()</td></tr>
<tr class="memdesc:a9101f0e558c732ba9736940806d32bd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动窗口到前边  <a href="#a9101f0e558c732ba9736940806d32bd8">更多...</a><br /></td></tr>
<tr class="separator:a9101f0e558c732ba9736940806d32bd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2796797c9017258d68c5e656e21c846d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a2796797c9017258d68c5e656e21c846d">captureFocus</a> ()</td></tr>
<tr class="memdesc:a2796797c9017258d68c5e656e21c846d"><td class="mdescLeft">&#160;</td><td class="mdescRight">捕获焦点  <a href="#a2796797c9017258d68c5e656e21c846d">更多...</a><br /></td></tr>
<tr class="separator:a2796797c9017258d68c5e656e21c846d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3acb7451a80e5499e3053a0986978e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa3acb7451a80e5499e3053a0986978e2">releaseFocus</a> ()</td></tr>
<tr class="memdesc:aa3acb7451a80e5499e3053a0986978e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">释放焦点  <a href="#aa3acb7451a80e5499e3053a0986978e2">更多...</a><br /></td></tr>
<tr class="separator:aa3acb7451a80e5499e3053a0986978e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedc9813bb44a1bf62a670edba0de5a3d"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="struct_widget_1_1_style_infor.html">StyleInfor</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aedc9813bb44a1bf62a670edba0de5a3d">getStyleInfor</a> () const</td></tr>
<tr class="memdesc:aedc9813bb44a1bf62a670edba0de5a3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前窗口状态的风格  <a href="#aedc9813bb44a1bf62a670edba0de5a3d">更多...</a><br /></td></tr>
<tr class="separator:aedc9813bb44a1bf62a670edba0de5a3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4572457be05d33309f087c7ce876d73e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="struct_widget_1_1_style_infor.html">StyleInfor</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a4572457be05d33309f087c7ce876d73e">getStyleInforByState</a> (<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state) const</td></tr>
<tr class="memdesc:a4572457be05d33309f087c7ce876d73e"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取指定窗口状态的风格  <a href="#a4572457be05d33309f087c7ce876d73e">更多...</a><br /></td></tr>
<tr class="separator:a4572457be05d33309f087c7ce876d73e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af84e4cd94f1b8123fc3649780e1e1908"><td class="memItemLeft" align="right" valign="top"><a id="af84e4cd94f1b8123fc3649780e1e1908"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setCurrentWidgetState</b> (<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state)</td></tr>
<tr class="separator:af84e4cd94f1b8123fc3649780e1e1908"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acebd3fa5b796043cf467360b81f645be"><td class="memItemLeft" align="right" valign="top"><a id="acebd3fa5b796043cf467360b81f645be"></a>
<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentWidgetState</b> () const</td></tr>
<tr class="separator:acebd3fa5b796043cf467360b81f645be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="class_object.html">Object&lt; Widget &gt;</a></td></tr>
<tr class="memitem:abbe7e8e32c5b4fa20c5f0ef918aba3df inherit pro_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="abbe7e8e32c5b4fa20c5f0ef918aba3df"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Object</b> (<a class="el" href="class_widget.html">Widget</a> *parent=nullptr)</td></tr>
<tr class="separator:abbe7e8e32c5b4fa20c5f0ef918aba3df inherit pro_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a03d44eed5351686d2165e6bc3c3f19ea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_rect.html">Rect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a03d44eed5351686d2165e6bc3c3f19ea">m_geometry</a></td></tr>
<tr class="separator:a03d44eed5351686d2165e6bc3c3f19ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_object"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_object')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="class_object.html">Object&lt; Widget &gt;</a></td></tr>
<tr class="memitem:a98a7eb09cd4383b747b3e73eda0215e4 inherit pro_attribs_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a98a7eb09cd4383b747b3e73eda0215e4"></a>
<a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_parent</b></td></tr>
<tr class="separator:a98a7eb09cd4383b747b3e73eda0215e4 inherit pro_attribs_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33edb9c86f8fb8d641f185cbf5173821 inherit pro_attribs_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a33edb9c86f8fb8d641f185cbf5173821"></a>
std::list&lt; <a class="el" href="class_widget.html">Widget</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_childrenList</b></td></tr>
<tr class="separator:a33edb9c86f8fb8d641f185cbf5173821 inherit pro_attribs_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:af8bb3bf23477bf487843c693554be9d3"><td class="memItemLeft" align="right" valign="top"><a id="af8bb3bf23477bf487843c693554be9d3"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>UiCore</b></td></tr>
<tr class="separator:af8bb3bf23477bf487843c693554be9d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>控件基类 </p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="aa98dcd44b71edaf2a5a1090503f4978c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa98dcd44b71edaf2a5a1090503f4978c">&#9670;&nbsp;</a></span>FocusPolicy</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">Widget::FocusPolicy</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>控件获取焦点的策略 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="aa98dcd44b71edaf2a5a1090503f4978ca3ea871a87eb027a222803fee59e6fe22"></a>TabFocus&#160;</td><td class="fielddoc"><p>按Tab键切换. </p>
</td></tr>
<tr><td class="fieldname"><a id="aa98dcd44b71edaf2a5a1090503f4978ca2f9f3e9d371f1c186deecf6a206fa437"></a>ClickFocus&#160;</td><td class="fielddoc"><p>通过鼠标点击. </p>
</td></tr>
<tr><td class="fieldname"><a id="aa98dcd44b71edaf2a5a1090503f4978caa11f91df0170ecddf92e6413a9eacaad"></a>NoFocus&#160;</td><td class="fielddoc"><p>不获取焦点. </p>
</td></tr>
</table>

</div>
</div>
<a id="afc894fe0bbff0d8d7f0e9705beb99a71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc894fe0bbff0d8d7f0e9705beb99a71">&#9670;&nbsp;</a></span>WidgetState</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">Widget::WidgetState</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>窗口的状态 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="afc894fe0bbff0d8d7f0e9705beb99a71ab9f5c797ebbf55adccdd8539a65a0241"></a>Disabled&#160;</td><td class="fielddoc"><p>禁用. </p>
</td></tr>
<tr><td class="fieldname"><a id="afc894fe0bbff0d8d7f0e9705beb99a71aeee0168be69b854c20621fc6f01cc3fc"></a>Hover&#160;</td><td class="fielddoc"><p>鼠标悬停. </p>
</td></tr>
<tr><td class="fieldname"><a id="afc894fe0bbff0d8d7f0e9705beb99a71ad78a68f6a85421ae121c2cb5b73a1040"></a>Pressed&#160;</td><td class="fielddoc"><p>鼠标按下. </p>
</td></tr>
<tr><td class="fieldname"><a id="afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0"></a>Normal&#160;</td><td class="fielddoc"><p>正常状态. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="ab74d90e08f161ca59b490e6b0a40a3a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab74d90e08f161ca59b490e6b0a40a3a1">&#9670;&nbsp;</a></span>Widget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Widget::Widget </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_widget.html">Widget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>nullptr</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_widget.html" title="控件基类">Widget</a></td><td>* parent 父窗口 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a2796797c9017258d68c5e656e21c846d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2796797c9017258d68c5e656e21c846d">&#9670;&nbsp;</a></span>captureFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::captureFocus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>捕获焦点 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a757e7b18d2a387c6c29b29de002d7b07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a757e7b18d2a387c6c29b29de002d7b07">&#9670;&nbsp;</a></span>getAbsPos()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector2.html">Vector2</a> Widget::getAbsPos </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取控件左下角的位置 （绝对坐标，即相对与当前的根窗口） </p>
<dl class="section return"><dt>返回</dt><dd>const <a class="el" href="class_vector2.html" title="2D向量">Vector2</a> &amp; </dd></dl>
<dl class="section see"><dt>参见</dt><dd>const <a class="el" href="class_vector2.html" title="2D向量">Vector2</a> &amp; getPos()const; </dd></dl>

</div>
</div>
<a id="ae64942da0517fb6a4ad84365d2a219e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae64942da0517fb6a4ad84365d2a219e0">&#9670;&nbsp;</a></span>getActiveSibling()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_widget.html">Widget</a>* Widget::getActiveSibling </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取活动的兄弟窗口 </p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_widget.html" title="控件基类">Widget</a> * </dd></dl>

</div>
</div>
<a id="ad318d341d341d37709fd52f512383f37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad318d341d341d37709fd52f512383f37">&#9670;&nbsp;</a></span>getCamera()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_camera.html">Camera</a>* Widget::getCamera </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取控件的相机 </p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_camera.html" title="相机">Camera</a> * </dd></dl>
<dl class="section see"><dt>参见</dt><dd>void <a class="el" href="class_widget.html#a5f42d2d0dab8cbd22d415746fd75908a" title="设置控件的相机">setCamera(Camera * camera)</a> </dd></dl>

</div>
</div>
<a id="acd968a1e776d9012d6e4250b634d14cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd968a1e776d9012d6e4250b634d14cf">&#9670;&nbsp;</a></span>getChildAtPos()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_widget.html">Widget</a>* Widget::getChildAtPos </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>allowDisable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取某个位置的子控件的弱引用 ，如果不存在 则返回为null </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_vector2.html" title="2D向量">Vector2</a> &amp; pos 需要获取的位置 </td></tr>
    <tr><td class="paramname">const</td><td>bool allowDisable 是否获取被禁用的子控件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>WidgetSharedPtr </dd></dl>

</div>
</div>
<a id="abeab8f9b74584ed96093f4aad8df8530"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abeab8f9b74584ed96093f4aad8df8530">&#9670;&nbsp;</a></span>getGeometry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_rect.html">Rect</a>&amp; Widget::getGeometry </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取控件的矩形表示 </p>
<dl class="section return"><dt>返回</dt><dd>const <a class="el" href="class_rect.html" title="矩形">Rect</a> &amp; 每个控件都是一个矩形，这个矩形区域用来作为展示控件背景、鼠标进出检测等的依据。 这个矩形是由左下角坐标和矩形的宽高两组信息组成的。坐标是相对于父控件的。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>void <a class="el" href="class_widget.html#a9214d2cd50ea54146cfedaec8b7e69f9" title="设置控件的矩形表示">setGeometry(const Rect &amp; rect)</a> </dd></dl>

</div>
</div>
<a id="ae582d3f5cc2e550fa54bcb8176b7156a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae582d3f5cc2e550fa54bcb8176b7156a">&#9670;&nbsp;</a></span>getParentMat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_matrix4_x4.html">Matrix4X4</a>&amp; Widget::getParentMat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取父窗口的矩阵 </p>
<dl class="section return"><dt>返回</dt><dd>const <a class="el" href="class_matrix4_x4.html">Matrix4X4</a>&amp; </dd></dl>

</div>
</div>
<a id="a185d091871a0343ab304701d4b57b70d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a185d091871a0343ab304701d4b57b70d">&#9670;&nbsp;</a></span>getPosition()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_vector2.html">Vector2</a> Widget::getPosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取控件左下角的位置（相对于父控件） </p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_vector2.html" title="2D向量">Vector2</a> </dd></dl>
<dl class="section see"><dt>参见</dt><dd>void <a class="el" href="class_widget.html#a391ce71cb3d5b83186d6c8f8aa894447" title="移动控件到某个位置（相对于父控件）">move(float x, float y)</a> </dd></dl>

<p>实现了 <a class="el" href="class_i_movable_object.html#a7f4afd0c908b64978c3bcf488277909e">IMovableObject</a>.</p>

</div>
</div>
<a id="a92ff242cf5edbcfb06c548bb0cb7106a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92ff242cf5edbcfb06c548bb0cb7106a">&#9670;&nbsp;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_size.html">Size</a>&amp; Widget::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取控件的尺寸 </p>
<dl class="section return"><dt>返回</dt><dd>const D2D1::Size &amp; </dd></dl>

</div>
</div>
<a id="aedc9813bb44a1bf62a670edba0de5a3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedc9813bb44a1bf62a670edba0de5a3d">&#9670;&nbsp;</a></span>getStyleInfor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="struct_widget_1_1_style_infor.html">StyleInfor</a>* Widget::getStyleInfor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取当前窗口状态的风格 </p>
<dl class="section return"><dt>返回</dt><dd>const <a class="el" href="struct_widget_1_1_style_infor.html">Widget::StyleInfor</a> * </dd></dl>

</div>
</div>
<a id="a4572457be05d33309f087c7ce876d73e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4572457be05d33309f087c7ce876d73e">&#9670;&nbsp;</a></span>getStyleInforByState()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="struct_widget_1_1_style_infor.html">StyleInfor</a>* Widget::getStyleInforByState </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a>&#160;</td>
          <td class="paramname"><em>state</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取指定窗口状态的风格 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">WidgetState</td><td>state 窗口状态 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>const <a class="el" href="struct_widget_1_1_style_infor.html">Widget::StyleInfor</a>* 风格 </dd></dl>

</div>
</div>
<a id="aff4a130f23c3d84eae5131baeabf9118"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff4a130f23c3d84eae5131baeabf9118">&#9670;&nbsp;</a></span>hasFocus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Widget::hasFocus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取控件是否拥有焦点 </p>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a4a2f8eebacdd20db505b838f1a118c6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a2f8eebacdd20db505b838f1a118c6b">&#9670;&nbsp;</a></span>hide()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::hide </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>隐藏窗口 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="afa94c38f97715c860044c4735f010572"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa94c38f97715c860044c4735f010572">&#9670;&nbsp;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Widget::init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化窗口 </p>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>
<dl class="section note"><dt>注解</dt><dd>子类在初始化阶段 务必先调用 父类的初始化 </dd></dl>

<p>重载 <a class="el" href="class_object.html">Object&lt; Widget &gt;</a> .</p>

<p>被 <a class="el" href="class_progress_bar.html#ac156261979e2d5e94504da6a2d141381">ProgressBar</a>, <a class="el" href="class_check_box.html#aef2c147b0c2ce38cb849c38bb9d86f2b">CheckBox</a> , 以及 <a class="el" href="class_push_button.html#a05fb3f3e05865289367867b6b0b91814">PushButton</a> 重载.</p>

</div>
</div>
<a id="a7931ceac649bdfe14a7819f771531b95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7931ceac649bdfe14a7819f771531b95">&#9670;&nbsp;</a></span>isActive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Widget::isActive </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取父控件的弱引用 </p>
<dl class="section return"><dt>返回</dt><dd>const WidgetWeakPtr &amp;获取控件是否在活跃状态</dd>
<dd>
bool </dd></dl>

</div>
</div>
<a id="ad31fc3f6a09f243a4ec1cc170987e467"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad31fc3f6a09f243a4ec1cc170987e467">&#9670;&nbsp;</a></span>isEnabled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Widget::isEnabled </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>这个widget是否被禁用 </p>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_widget.html#ab5e436fd5203d231d70c4336cfad6050" title="设置这个widget是否禁用">setEnabled(bool enabled)</a> </dd></dl>

</div>
</div>
<a id="ae469bb315299916388d717225e71a802"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae469bb315299916388d717225e71a802">&#9670;&nbsp;</a></span>isVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Widget::isVisible </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>控件是否被显示 </p>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a391ce71cb3d5b83186d6c8f8aa894447"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a391ce71cb3d5b83186d6c8f8aa894447">&#9670;&nbsp;</a></span>move() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::move </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动控件到某个位置（相对于父控件） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>x 横坐标 </td></tr>
    <tr><td class="paramname">float</td><td>y 纵坐标 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void 单位为(px)像素，目标位置以这个控件的左下角为锚点进行计算 /sa const <a class="el" href="class_vector2.html" title="2D向量">Vector2</a> &amp; getPos()const </dd></dl>

</div>
</div>
<a id="ad482afc0226b604e024b5213a67f4269"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad482afc0226b604e024b5213a67f4269">&#9670;&nbsp;</a></span>move() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::move </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动控件到某个位置（相对于父控件） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_vector2.html" title="2D向量">Vector2</a> &amp; pos 位置 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void 单位为(px)像素，目标位置以这个控件的左下角为锚点进行计算 /sa const <a class="el" href="class_vector2.html" title="2D向量">Vector2</a> &amp; getPos()const </dd></dl>

</div>
</div>
<a id="a9101f0e558c732ba9736940806d32bd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9101f0e558c732ba9736940806d32bd8">&#9670;&nbsp;</a></span>moveToFront()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::moveToFront </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>移动窗口到前边 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="aa59e00b37382ac7c09f4aa30bd142603"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa59e00b37382ac7c09f4aa30bd142603">&#9670;&nbsp;</a></span>onActiveEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onActiveEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_widget_active.html">EventWidgetActive</a> *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>窗口进入活动状态的事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_widget_active.html" title="窗口活动事件">EventWidgetActive</a></td><td>* e 事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a8fba2c51a89fb571fb574bb431969887">ListWidget</a> 重载.</p>

</div>
</div>
<a id="a2b92c54bbfbc7ecc62dc7496f0735468"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b92c54bbfbc7ecc62dc7496f0735468">&#9670;&nbsp;</a></span>onCharacterEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onCharacterEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_character.html">EventCharacter</a> *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>字符消息事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_character.html" title="字符输入事件">EventCharacter</a></td><td>* e 字符事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void 当键盘输入的按键可打印或者输入法有输入时，将会触发这个事件 </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a5511b22f21d8129d39b5a840ef11b4da">ListWidget</a> , 以及 <a class="el" href="class_line_edit.html#aa74fd0e6bc38a0d7e146bf32eeb6403b">LineEdit</a> 重载.</p>

</div>
</div>
<a id="a8ff64c02aadfe8fbb392d1f0ba0435bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ff64c02aadfe8fbb392d1f0ba0435bd">&#9670;&nbsp;</a></span>onDeactiveEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onDeactiveEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_widget_active.html">EventWidgetActive</a> *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>窗口失去活动状态的事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_widget_active.html" title="窗口活动事件">EventWidgetActive</a></td><td>* e 事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a594b6f970dd4c231574d1f53fea9901a">ListWidget</a> 重载.</p>

</div>
</div>
<a id="a53f5b2041a68628dfd5920192cfa4f9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53f5b2041a68628dfd5920192cfa4f9c">&#9670;&nbsp;</a></span>onFocusInEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onFocusInEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_focus.html">EventFocus</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获得焦点事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_focus.html" title="焦点事件">EventFocus</a></td><td>* event 焦点事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a669c8817eb94650941cfc0f18ed9c5d0">ListWidget</a> 重载.</p>

</div>
</div>
<a id="a1b7831f26a5688762b730532e1473148"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b7831f26a5688762b730532e1473148">&#9670;&nbsp;</a></span>onFocusOutEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onFocusOutEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_focus.html">EventFocus</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>失去焦点事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_focus.html" title="焦点事件">EventFocus</a></td><td>* event 焦点事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#adf21db8da4fe2b6d68f6f5d7997dcd36">ListWidget</a> 重载.</p>

</div>
</div>
<a id="a8426dc14f6e8319d8d78af10d33cd379"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8426dc14f6e8319d8d78af10d33cd379">&#9670;&nbsp;</a></span>onKeyPressEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onKeyPressEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_key.html">EventKey</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>键盘中的键按下事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_key.html" title="键盘事件">EventKey</a></td><td>* event 按键事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_line_edit.html#a74aa5eaa335f832cc59c068b374ee439">LineEdit</a> 重载.</p>

</div>
</div>
<a id="a9ea16c64e0036d6c3e8ab21744af4cf2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ea16c64e0036d6c3e8ab21744af4cf2">&#9670;&nbsp;</a></span>onKeyReleaseEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onKeyReleaseEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_key.html">EventKey</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>键盘中的键弹起事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_key.html" title="键盘事件">EventKey</a></td><td>* event 键盘事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_line_edit.html#aa36ca4e983af63c4674f589eb1984960">LineEdit</a> 重载.</p>

</div>
</div>
<a id="ae7db85ef0baa4f2b23f26631f5b57aca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7db85ef0baa4f2b23f26631f5b57aca">&#9670;&nbsp;</a></span>onMouseDoubleClickedEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onMouseDoubleClickedEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_mouse.html">EventMouse</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>鼠标双击事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_mouse.html" title="鼠标事件">EventMouse</a></td><td>* event 鼠标事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a9cd1fd0a16de17bacf1b2ed13a31a511">ListWidget</a> 重载.</p>

</div>
</div>
<a id="aadc31befd9cc8f5cd74cc5d0fc2e889d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadc31befd9cc8f5cd74cc5d0fc2e889d">&#9670;&nbsp;</a></span>onMouseEnterEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onMouseEnterEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_widget_event.html">WidgetEvent</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>鼠标离开窗口 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_mouse.html" title="鼠标事件">EventMouse</a></td><td>* event 鼠标事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a5b96ebe93c2de75919b5bd94210105e1">ListWidget</a> 重载.</p>

</div>
</div>
<a id="af0efa327209a1bc92a4bba089f59023d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0efa327209a1bc92a4bba089f59023d">&#9670;&nbsp;</a></span>onMouseLeavesEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onMouseLeavesEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_widget_event.html">WidgetEvent</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>鼠标进入窗口 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_mouse.html" title="鼠标事件">EventMouse</a></td><td>* event 鼠标事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a795a3681003bbc19f11bfbe0ce8cf095">ListWidget</a> 重载.</p>

</div>
</div>
<a id="ada1cd30b701b453b7203caaa4501e246"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada1cd30b701b453b7203caaa4501e246">&#9670;&nbsp;</a></span>onMouseMoveEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onMouseMoveEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_mouse.html">EventMouse</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>鼠标移动事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_mouse.html" title="鼠标事件">EventMouse</a></td><td>* event 鼠标事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#ab9ed857db87b7bd40bb7a8721f2ed8b8">ListWidget</a> , 以及 <a class="el" href="class_line_edit.html#a832cabc4c142878de7f6294b512bf560">LineEdit</a> 重载.</p>

</div>
</div>
<a id="ae83090655af4e7c8d2158600c2c26f94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae83090655af4e7c8d2158600c2c26f94">&#9670;&nbsp;</a></span>onMousePressEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onMousePressEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_mouse.html">EventMouse</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>鼠标键按下事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_mouse.html" title="鼠标事件">EventMouse</a></td><td>* event 键盘事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_line_edit.html#aec7df0459c70665b6c4517b4678a3afb">LineEdit</a>, <a class="el" href="class_abstract_button.html#ab4c01e35e5749236ed4f759c154a3cc5">AbstractButton</a> , 以及 <a class="el" href="class_defult_widget.html#ab041d606df3c6c2db740875f97bef07b">DefultWidget</a> 重载.</p>

</div>
</div>
<a id="ab11f034a2dea14ad22a3bf3755d18318"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab11f034a2dea14ad22a3bf3755d18318">&#9670;&nbsp;</a></span>onMouseReleaseEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onMouseReleaseEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_mouse.html">EventMouse</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>鼠标键弹起事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_mouse.html" title="鼠标事件">EventMouse</a></td><td>* event 鼠标事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#ada0868037d7756b7d29579b9dae24c7b">ListWidget</a>, <a class="el" href="class_line_edit.html#abb3caa3fd88de77c3e06d03b78012bff">LineEdit</a>, <a class="el" href="class_abstract_button.html#a5ce70437052e79065757cd1e0fcaaa3e">AbstractButton</a>, <a class="el" href="class_check_box.html#aa574a679ba2caf4ca8eb9b75abb5ed90">CheckBox</a>, <a class="el" href="class_push_button.html#a3bcb8908e8317ed1874cdf31f84ceb06">PushButton</a> , 以及 <a class="el" href="class_defult_widget.html#a1fabd4a6f7c78ba39f8b136b8c7c3831">DefultWidget</a> 重载.</p>

</div>
</div>
<a id="a81335813f016195213e7caaa9bfedd4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81335813f016195213e7caaa9bfedd4e">&#9670;&nbsp;</a></span>onMoveEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onMoveEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_widget_move.html">EventWidgetMove</a> *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>窗口移动事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_widget_move.html" title="窗口移动事件">EventWidgetMove</a></td><td>* e 窗口移动事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a7f8c0b8a6ec3af476702d570d67487e8">ListWidget</a>, <a class="el" href="class_line_edit.html#a889e014cac3e9547e53da5b22ee27b5e">LineEdit</a>, <a class="el" href="class_progress_bar.html#a2616e97b0db4cf2acbc61c75b04a28e6">ProgressBar</a>, <a class="el" href="class_push_button.html#ae42b8d5e699ddf4e4a74b35987224b89">PushButton</a>, <a class="el" href="class_label.html#aa7831681527adddc4cfe685535f55b72">Label</a> , 以及 <a class="el" href="class_check_box.html#a24eb0db4908fba0c64255acc254964a1">CheckBox</a> 重载.</p>

</div>
</div>
<a id="aa0ed2836fa08df251b072f17c0e3ae1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0ed2836fa08df251b072f17c0e3ae1e">&#9670;&nbsp;</a></span>onResizeEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::onResizeEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_resize.html">EventResize</a> *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>窗口的尺寸改变的事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_resize.html" title="控件尺寸变化事件">EventResize</a></td><td>* e 事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>被 <a class="el" href="class_list_widget.html#a044ab51db448f5ebe7e22b21157c1fb7">ListWidget</a>, <a class="el" href="class_line_edit.html#a863ef4e06935e9eaed4907d00fefe927">LineEdit</a>, <a class="el" href="class_progress_bar.html#acc10bdac6403728ee9d7ac036edb3bb5">ProgressBar</a>, <a class="el" href="class_label.html#a9622ac835ebaa4e6815633a9e821a0e3">Label</a>, <a class="el" href="class_push_button.html#a175b9b0911590b49162ff70d7ba310cc">PushButton</a> , 以及 <a class="el" href="class_check_box.html#a02ecff378599f71166de3617d5bb8860">CheckBox</a> 重载.</p>

</div>
</div>
<a id="aa3acb7451a80e5499e3053a0986978e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3acb7451a80e5499e3053a0986978e2">&#9670;&nbsp;</a></span>releaseFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::releaseFocus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>释放焦点 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="aadd50305ce9b3e666f597677b8409660"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadd50305ce9b3e666f597677b8409660">&#9670;&nbsp;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::resize </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_size.html">Size</a> &amp;&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>调整控件的尺寸 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_size.html" title="尺寸">Size</a> &amp; size 尺寸 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="ad01089097b612ad5f78825fe6055f8aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad01089097b612ad5f78825fe6055f8aa">&#9670;&nbsp;</a></span>setBackgroundImage() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::setBackgroundImage </td>
          <td>(</td>
          <td class="paramtype">std::unique_ptr&lt; <a class="el" href="class_scale9_image.html">Scale9Image</a> &gt;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a>&#160;</td>
          <td class="paramname"><em>state</em> = <code><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将派生类的 shared_ptr 转为 widget 的 shared_ptr </p>
<dl class="section return"><dt>返回</dt><dd>WidgetSharedPtr设置背景图片</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">std::unique_ptr&lt;Scale9Image&gt;</td><td>image 背景图 </td></tr>
    <tr><td class="paramname">WidgetState</td><td>state 对应的窗口状态 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a2962f465ea53324b3216f4d70f0d301e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2962f465ea53324b3216f4d70f0d301e">&#9670;&nbsp;</a></span>setBackgroundImage() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::setBackgroundImage </td>
          <td>(</td>
          <td class="paramtype">const SpriteFrameSharedPtr &amp;&#160;</td>
          <td class="paramname"><em>sprite_frame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_rect.html">Rect</a>&#160;</td>
          <td class="paramname"><em>cap</em> = <code>Rect::Zero</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a>&#160;</td>
          <td class="paramname"><em>state</em> = <code><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置背景图片 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>SpriteFrameSharedPtr &amp; sprite_frame 精灵帧 </td></tr>
    <tr><td class="paramname"><a class="el" href="class_rect.html" title="矩形">Rect</a></td><td>cap 9宫图的中间区域 参考 <em><a class="el" href="class_scale9_image.html" title="点9图">Scale9Image</a></em> </td></tr>
    <tr><td class="paramname">WidgetState</td><td>state 对应的窗口状态 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a6263bff3dbddeb4406979a5f0ea63049"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6263bff3dbddeb4406979a5f0ea63049">&#9670;&nbsp;</a></span>setBackgroundImage() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::setBackgroundImage </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>file_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_rect.html">Rect</a>&#160;</td>
          <td class="paramname"><em>cap</em> = <code>Rect::Zero</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a>&#160;</td>
          <td class="paramname"><em>state</em> = <code><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置背景图片 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::wstring &amp; file_name 图片的路径 </td></tr>
    <tr><td class="paramname"><a class="el" href="class_rect.html" title="矩形">Rect</a></td><td>cap 9宫图的中间区域 参考 <em><a class="el" href="class_scale9_image.html" title="点9图">Scale9Image</a></em> </td></tr>
    <tr><td class="paramname">WidgetState</td><td>state 对应的窗口状态 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a5f42d2d0dab8cbd22d415746fd75908a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f42d2d0dab8cbd22d415746fd75908a">&#9670;&nbsp;</a></span>setCamera()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::setCamera </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_camera.html">Camera</a> *&#160;</td>
          <td class="paramname"><em>camera</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置控件的相机 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_camera.html" title="相机">Camera</a></td><td>* camera </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_camera.html" title="相机">Camera</a> * <a class="el" href="class_widget.html#ad318d341d341d37709fd52f512383f37" title="获取控件的相机">getCamera()const</a> </dd></dl>

</div>
</div>
<a id="ab5e436fd5203d231d70c4336cfad6050"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5e436fd5203d231d70c4336cfad6050">&#9670;&nbsp;</a></span>setEnabled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::setEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置这个widget是否禁用 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bool</td><td>enabled </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_widget.html#ad31fc3f6a09f243a4ec1cc170987e467" title="这个widget是否被禁用">isEnabled()const</a> </dd></dl>

</div>
</div>
<a id="a0812a53f0f3aa840cb6dd0fb86322229"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0812a53f0f3aa840cb6dd0fb86322229">&#9670;&nbsp;</a></span>setFont()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::setFont </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_font.html">Font</a> &amp;&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a>&#160;</td>
          <td class="paramname"><em>state</em> = <code><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置字体 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_font.html">Font</a> &amp; font 字体 </td></tr>
    <tr><td class="paramname">WidgetState</td><td>state 窗口的状态 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a9214d2cd50ea54146cfedaec8b7e69f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9214d2cd50ea54146cfedaec8b7e69f9">&#9670;&nbsp;</a></span>setGeometry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::setGeometry </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_rect.html">Rect</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置控件的矩形表示 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_rect.html" title="矩形">Rect</a> &amp; rect 矩形 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void 每个控件都是一个矩形，这个矩形区域用来作为展示控件背景、鼠标进出检测等的依据。 这个矩形是由左下角坐标和矩形的宽高两组信息组成的。坐标是相对于父控件的。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>const <a class="el" href="class_rect.html" title="矩形">Rect</a> &amp; <a class="el" href="class_widget.html#abeab8f9b74584ed96093f4aad8df8530" title="获取控件的矩形表示">getGeometry()const</a> </dd></dl>

</div>
</div>
<a id="a51acbd9bdb6838fcee359286cc58b7e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51acbd9bdb6838fcee359286cc58b7e0">&#9670;&nbsp;</a></span>setPosition()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Widget::setPosition </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置widget 的位置 等价于 <a class="el" href="class_widget.html#ad482afc0226b604e024b5213a67f4269" title="移动控件到某个位置（相对于父控件）">move(const Vector2 &amp; pos)</a> </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_vector2.html" title="2D向量">Vector2</a> &amp; pos </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>实现了 <a class="el" href="class_i_movable_object.html#af8b4fbc3484d994d97e0dfad3b2715a9">IMovableObject</a>.</p>

</div>
</div>
<a id="aaca6d21146c61f29c2f12538126cc3af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaca6d21146c61f29c2f12538126cc3af">&#9670;&nbsp;</a></span>setTextColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::setTextColor </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_color.html">Color</a> &amp;&#160;</td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a>&#160;</td>
          <td class="paramname"><em>state</em> = <code><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置文字的颜色 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_color.html" title="颜色 r,g,b,a">Color</a> &amp; color </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a25ff178539e226b5f30ef0335d060f2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25ff178539e226b5f30ef0335d060f2b">&#9670;&nbsp;</a></span>show()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Widget::show </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>显示 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a03d44eed5351686d2165e6bc3c3f19ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03d44eed5351686d2165e6bc3c3f19ea">&#9670;&nbsp;</a></span>m_geometry</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_rect.html">Rect</a> Widget::m_geometry</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>控件的矩形表示. 相对与父控件 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/ui/<a class="el" href="_widget_8h_source.html">Widget.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
